import http from "@/api/axios";

export const getListApi = (data: OutBoundAgent.SearchForm) => {
  return http({
    method: "post",
    url: "/base/bizOutWarehouseBroker/page",
    data
  });
};
export const addOutBoundAgentApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/bizOutWarehouseBroker/add",
    data
  });
};
export const modifyOutBoundAgentApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/bizOutWarehouseBroker/update",
    data
  });
};
export const updateOutBoundAgentStatusApi = (data: { id: string; status: number }) => {
  return http({
    method: "post",
    url: "/base/bizOutWarehouseBroker/updateStatus",
    data
  });
};
// 详情
export const getOutBoundAgentInfoApi = (id: string | number) => {
  return http({
    method: "get",
    url: `/base/bizOutWarehouseBroker/getById/${id}`
  });
};
